﻿//-----------------------------------------------------------------------------------------------
// <copyright file="LicenseData.cs" company="VSSD" author="VSSD-KT" initializationUser="TriDM">
//     Copyright © VietNam Securities Software Development (VSSD) 2009.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------------------------------

namespace Lapas.Common.License
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// Lớp định nghĩa thông tin về bản quyền
    /// </summary>
    public class LicenseData
    {
        private string rangeField;
        /// <summary>
        /// Phạm vi áp dụng cho License
        /// </summary>
        public string Range
        {
            get { return rangeField; }
            set { rangeField = value; }
        }

        private string licenseNameField;
        /// <summary>
        /// Tên module
        /// </summary>
        public string LicenseName
        {
            get { return licenseNameField; }
            set { licenseNameField = value; }
        }

        private string licenseKeyField;
        /// <summary>
        /// Giá trị license đã má hóa theo MD5
        /// </summary>
        public string LicenseKey
        {
            get { return licenseKeyField; }
            set { licenseKeyField = value; }
        }

        private string issuerField;
        /// <summary>
        /// Tên user của VSSD cấp
        /// </summary>
        public string Issuer
        {
            get { return issuerField; }
            set { issuerField = value; }
        }

        private DateTime issuedTimeField;
        /// <summary>
        /// Thời gian cấp
        /// </summary>
        public DateTime IssuedTime
        {
            get { return issuedTimeField; }
            set { issuedTimeField = value; }
        }

        private bool isValidField;
        /// <summary>
        /// License có hợp lệ hay không?
        /// </summary>
        public bool IsValid
        {
            get { return isValidField; }
            set { isValidField = value; }
        }

        private string descriptionField;
        /// <summary>
        /// Mô tả
        /// </summary>
        public string Description
        {
            get { return descriptionField; }
            set { descriptionField = value; }
        }


        /// <summary>
        /// Initialize a new instance of LicenseData class
        /// </summary>
        public LicenseData()
        {
        }
    }
}
